How to tell if a number is prime?
Could you please elaborate on the process of determining whether a given number is prime or not? I'm particularly interested in understanding the steps involved and any specific techniques or algorithms that might be used for this purpose. Could you also explain how we can efficiently check for primality, especially for large numbers? Additionally, are there any common mistakes or pitfalls that people often encounter when trying to determine primality? I would appreciate it if you could provide a clear and concise explanation.